package Demo;

import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        String s=in.nextLine();
        String []ss=s.split(" ");
        StringBuffer sb=new StringBuffer();
        for (int i = ss.length-1; i >0 ; i--) {
            sb.append(ss[i]+" ");
        }
        sb.append(ss[0]);
        s=sb.toString();
        System.out.println(s);
    }
}
